package com.bw.mapper;

import com.bw.domain.User;
import com.bw.domain.Worker;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author :Beyond🎸🎸
 * @date : 2025-03-10 14:30:35
 * @description Rock and Roll
 **/
@Mapper
public interface WorkerMapper {
    @Select("select * from t_worker")
    List<Worker> listWorker();

    @Select("select * from t_worker where name = #{name}")
    Worker getByName(String name);
}
